StupidBeauty
Read times:583Posted at:Thu Nov 15 00:51:16 2012
- no title specified

转载Showing flash in QWebView on a QScrollArea

要显示flash,需要在网页相关设置中启用插件: QWebSettings ::globalSettings()->setAttribute( QWebSettings ::PluginsEnabled, true);

http://qt-project.org/forums/viewthread/7512

亮点:

I’d like to show a flash video with other widgets on a QScrollArea. I’ve created a QWebView like that:

  1. 1. QNetworkProxyFactory::setUseSystemConfiguration (true);

  2. 2. QWebSettings::globalSettings()->setAttribute(QWebSettings::PluginsEnabled, true);

  3. 3. QWebView* video = new QWebView(this);

  4. 4.video->setFixedSize(550,343);

  5. 5.video->setHtml(...);

The video appears

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4